﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartHouseOOP
{
    public class Resource
    {
        private string resourceLabel;
        public Resource(string inputResourceLabel)
        {
            this.resourceLabel = inputResourceLabel;
        }
        public string ResourceLabel
        {
            get
            {
                return this.resourceLabel;
            }
        }
        public override string ToString()
        {
            if (resourceLabel == "E")
            {
                return "Electicity";
            }
            else if (resourceLabel == "W")
            {
                return "Water";
            }
            else return "Electric&Water";
        }
    }
}
